/*
 * Copyright (c) 2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * @addtogroup i18n
 * @{
 *
 * @brief 提供国际化能力C API的接口。
 * @since 22
 */

/**
 * @file errorcode.h
 *
 * @brief 提供国际化接口返回的错误码。
 *
 * @library libohi18n.so
 * @kit LocalizationKit
 * @syscap SystemCapability.Global.I18n
 * @include <i18n/errorcode.h>
 * @since 22
 */

#ifndef GLOBAL_I18N_ERRORCODE_H
#define GLOBAL_I18N_ERRORCODE_H

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @brief 国际化错误码。
 * @since 22
 */
typedef enum I18n_ErrorCode {
    /** 成功。*/
    SUCCESS = 0,

    /** 传入参数无效。*/
    ERROR_INVALID_PARAMETER = 8900001,

    /** 预期之外的错误，例如内存错误。*/
    UNEXPECTED_ERROR = 8900050,
} I18n_ErrorCode;

#ifdef __cplusplus
};
#endif
#endif // GLOBAL_I18N_ERRORCODE_H

/** @} */